package com.itheima.cart.service.impl;

import com.itheima.cart.po.Cart;
import com.itheima.cart.mapper.CartMapper;
import com.itheima.cart.service.ICartService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2025-08-17
 */
@Service
public class CartServiceImpl extends ServiceImpl<CartMapper, Cart> implements ICartService {

    @Override
    @Transactional
    public void deleteById(Integer id) {
        this.removeById(id);
    }
}
